package one_05_method;

public class demo02 {
    public static void main(String[] args) {
        System.out.println(max(12, 45));
    }
    // 比大小
    public static int max(int num1,int num2){
        int result = 0;

        if (num1==num2){
            System.out.println("num1=num2");
            return 0;// result：结束方法
        }

        if (num1>num2){
            result = num1;
        }else {
            result = num2;
        }
        return result;
    }
}
